<!DOCTYPE html>
<html>
<head>
    <title>{$article.post_title}</title>
    <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}"/>
    <meta name="description" content="{$site_info.site_seo_description|default=''}">
    <include file="public@head"/>
	<LINK rel=stylesheet type=text/css href="__TMPL__/public/assets/css/lrtk.css">
	<SCRIPT type=text/javascript src="__TMPL__/public/assets/js/jquery.js"></SCRIPT>
	<SCRIPT type=text/javascript src="__TMPL__/public/assets/js/slide.js"></SCRIPT>
    <style>
        #article_content img {
            height: auto !important;
            max-width: 100%;
        }

        #article_content {
            word-wrap: break-word;
        }
    </style>
    <hook name="before_head_end"/>
</head>
<body class="body-white">
<include file="public@nav"/>
<div class="container tc-main">
    <div class="row" style="text-align: center;margin-left: 10%">
        <div class="col-md-9" >
            <div class="tc-box article-box" >
                <if condition="$article['post_status']">
                    <h2>{$article.post_title}</h2>
                    <div class="article-infobox" >
                        <span>上架时间：{:date('Y-m-d H:i',$article.published_time)}</span>
						<span>
		    			<a href="javascript:;"><i class="fa fa-eye"></i><span>{$article.post_hits}</span></a>
						<a href="{:url('portal/Article/doLike',array('id'=>$article['id']))}" class="js-count-btn"><i
								class="fa fa-thumbs-up"></i><span class="count">{$article.post_like}</span></a>
						<a href="{:url('user/favorite/add')}"
						   class="js-favorite-btn"
						   data-title="{:base64_encode($article.post_title)}"
						   data-url="{:cmf_url_encode('portal/Article/index',array('id'=>$article['id']))}"
						   data-table="portal_post"
						   data-id="{$article['id']}"
						>

						</a>
					</span>
						<if condition="isset($article['more']['photos'])">
						<DIV style="HEIGHT: 560px; PADDING-TOP: 20px" class="wrap picshow"><!--大图轮换区-->
							<DIV id=picarea>
								<DIV style="MARGIN: 0px auto; WIDTH: 774px; HEIGHT: 436px; OVERFLOW: hidden">
									<DIV style="MARGIN: 0px auto; WIDTH: 774px; HEIGHT: 436px; OVERFLOW: hidden" id=bigpicarea>
										<P class=bigbtnPrev><SPAN id=big_play_prev></SPAN></P>

										<volist name="article['more']['photos']" key="i" id="vo">
										<DIV id=image_xixi-0{$i} class=image><IMG alt="" src="/public/upload/{$vo.url}" width=772 height=434>
											<DIV class=word>
												</DIV></DIV>
										</volist>
										<P class=bigbtnNext><SPAN id=big_play_next></SPAN></P></DIV></DIV>
								<DIV id=smallpicarea>
									<DIV id=thumbs>
										<UL>
											<LI class="first btnPrev"><IMG id=play_prev src="__TMPL__/public/assets/images/left.png"></LI>
											<volist name="article['more']['photos']" key="i" id="vo">
											<LI class=slideshowItem>
												<A id=thumb_xixi-0{$i} href="#"><IMG src="/public/upload/{$vo.url}" width=90 height=60></A>
											</LI>
											</volist>
											<LI class="last btnNext"><IMG id=play_next src="__TMPL__/public/assets/images/right.png"></LI>
										</UL></DIV></DIV></DIV>
							<SCRIPT>
                                var target = ["xixi-01","xixi-02","xixi-03","xixi-04","xixi-05","xixi-06","xixi-07"];
							</SCRIPT>
						</DIV>
						</if>

                    </div>
                    <hr>
                    <div id="article_content">
                        {$article.post_content}
                    </div>
                    <else/>
                    <h2 style="text-align: center;">由于某些原因，此商品已被管理员下家!</h2>
                    <php>
                        $after_content_hook_param=[
                            'object_id'=>$article['id'],
                            'table_name'=>'portal_post',
                            'object_title'=>$article['post_title'],
                            'user_id'=>$article['user_id'],
                            'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])),
                            'object'=>$article
                        ];
                    </php>
                    <hook name="after_content" param="after_content_hook_param"/>
                </if>

                <php>
                    $comment_hook_param=[
                    'object_id'=>$article['id'],
                    'table_name'=>'portal_post',
                    'object_title'=>$article['post_title'],
                    'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id']))
                    ];
                    $comment=hook_one('comment',$comment_hook_param);
                </php>

                {$comment}
            </div>


        </div>
        <style>
            #savePro #showArea1 a img {
                width: 100%;
                display: block;
            }
            #savePro #showArea1 a span {
                display: block;
                text-align: center;
                line-height: 18px;
                margin: 7px 0 12px 0;
            }
            #savePro #gotop {
                margin: 10px 10px;
                height: 20px;
                overflow: hidden;
                cursor: pointer;
                background: url(/public/themes/simpleboot3/public/assets/images/top.png) center center no-repeat;
            }
            #savePro #gobottom {
                background: url(/public/themes/simpleboot3/public/assets/images/down.png)center center no-repeat ;
            }
            #savePro #showArea1 {
                overflow: hidden;
                height: 600px;
                margin: 0 10px;
            }
        </style>
        <div class="col-md-3">
            <div class="tc-box first-box">
                <div class="headtitle">
                    <h2>热门商品</h2>
                </div>
                <div class="ranking">
                    <php>
                        $hot_articles=[];
                    </php>
                    <ul class="list-unstyled" id="savePro">
                        <li id="gotop"></li>
                        <li  id="showArea1" >
                        <portal:articles limit="5" order="post.post_hits DESC">
                            <php>$top=$key<3?"top3":"";</php>
                                <a title="{$vo.post_title}"
                                   href="{:url('portal/article/index',array('id'=>$vo['id']))}">
                                    <img src="/public/upload/{$vo['more']['thumbnail']}" alt="枫叶智能衣柜柜内烫衣板隐藏式熨衣板电熨斗架推拉折叠烫衣架">
                                    <span>{$vo.post_title}</span>
                                </a>
                        </portal:articles>
                        </li>
                        <li id="gobottom"></li>
                    </ul>
                </div>
            </div>

        </div>

    </div>


</div>
<include file="public@footer"/>
<include file="public@scripts"/>
<hook name="before_body_end"/>
</body>
</html>
<script type="text/javascript">
    //上下滚动
    var EMyMar;
    var Espeed = 20; //速度，越大越慢
    var Espec = 6; //每次滚动的间距, 越大滚动越快
    document.getElementById('gotop').onmouseover = function() {EMyMar=setInterval(gotop,Espeed);}
    document.getElementById('gotop').onmouseout = function() {clearInterval(EMyMar);}
    document.getElementById('gobottom').onmouseover = function() {EMyMar=setInterval(gobottom,Espeed);}
    document.getElementById('gobottom').onmouseout = function() {clearInterval(EMyMar);}
    function gotop() {document.getElementById('showArea1').scrollTop-=Espec;}
    function gobottom() {document.getElementById('showArea1').scrollTop+=Espec;}
</script>